home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 29 code / ACGIs_in_C.sit / ACGIs in C / acgi.h < prev    next >
MacBinary  |  1996-08-08  |  8.3 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Aug 8 14:56:49 1996, modified Thu Aug 8 14:56:49 1996, creator BBEdit, type ASCII, 6673 bytes "acgi.h" , at 0x1a91 1482 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 61 63 67 69 2e 68 | 00 00 00 00 00 00 00 00 |..acgi.h|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 52 2a 63 | 68 01 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 1a 11 00 | 00 05 ca ae 2f e8 f1 ae |........|..../...|
|00000060| 2f e8 f1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3e 19 00 00 |........|....>...|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 41 43 47 49 5f 5f |#ifndef |__ACGI__|
|00000090| 0d 23 64 65 66 69 6e 65 | 20 5f 5f 41 43 47 49 5f |.#define| __ACGI_|
|000000a0| 5f 0d 0d 23 69 6e 63 6c | 75 64 65 20 3c 54 68 72 |_..#incl|ude <Thr|
|000000b0| 65 61 64 73 2e 68 3e 0d | 0d 76 6f 69 64 20 41 43 |eads.h>.|.void AC|
|000000c0| 47 49 4c 6f 67 28 63 68 | 61 72 20 2a 6d 73 67 29 |GILog(ch|ar *msg)|
|000000d0| 3b 0d 0d 2f 2f 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |;..// --|--------|
|000000e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 65 6e 75 |--------|---..enu|
|00000110| 6d 20 7b 0d 09 65 72 72 | 57 57 57 4e 6f 4d 65 6d |m {..err|WWWNoMem|
|00000120| 6f 72 79 20 3d 20 2d 31 | 2c 0d 09 65 72 72 57 57 |ory = -1|,..errWW|
|00000130| 57 55 6e 65 78 70 65 63 | 74 65 64 20 3d 20 2d 32 |WUnexpec|ted = -2|
|00000140| 2c 0d 09 65 72 72 57 57 | 57 52 65 66 75 73 65 64 |,..errWW|WRefused|
|00000150| 20 3d 20 2d 33 2c 0d 09 | 65 72 72 57 57 57 54 6f | = -3,..|errWWWTo|
|00000160| 6f 42 75 73 79 20 3d 20 | 2d 34 0d 7d 3b 0d 0d 2f |oBusy = |-4.};../|
|00000170| 2f 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/ ------|--------|
|00000180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001a0| 2d 2d 2d 2d 2d 2d 2d 0d | 0d 74 79 70 65 64 65 66 |-------.|.typedef|
|000001b0| 20 73 74 72 75 63 74 20 | 57 57 57 52 65 71 75 65 | struct |WWWReque|
|000001c0| 73 74 52 65 63 6f 72 64 | 20 7b 0d 09 63 68 61 72 |stRecord| {..char|
|000001d0| 20 2a 70 61 74 68 41 72 | 67 73 3b 0d 09 63 68 61 | *pathAr|gs;..cha|
|000001e0| 72 20 2a 75 73 65 72 6e | 61 6d 65 3b 0d 09 63 68 |r *usern|ame;..ch|
|000001f0| 61 72 20 2a 70 61 73 73 | 77 6f 72 64 3b 0d 09 63 |ar *pass|word;..c|
|00000200| 68 61 72 20 2a 66 72 6f | 6d 55 73 65 72 3b 0d 09 |har *fro|mUser;..|
|00000210| 63 68 61 72 20 2a 63 6c | 69 65 6e 74 41 64 64 72 |char *cl|ientAddr|
|00000220| 65 73 73 3b 0d 09 63 68 | 61 72 20 2a 73 65 72 76 |ess;..ch|ar *serv|
|00000230| 65 72 4e 61 6d 65 3b 0d | 09 63 68 61 72 20 2a 73 |erName;.|.char *s|
|00000240| 65 72 76 65 72 50 6f 72 | 74 3b 0d 09 63 68 61 72 |erverPor|t;..char|
|00000250| 20 2a 73 63 72 69 70 74 | 4e 61 6d 65 3b 0d 09 63 | *script|Name;..c|
|00000260| 68 61 72 20 2a 63 6f 6e | 74 65 6e 74 54 79 70 65 |har *con|tentType|
|00000270| 3b 0d 09 63 68 61 72 20 | 2a 72 65 66 65 72 65 72 |;..char |*referer|
|00000280| 3b 0d 09 63 68 61 72 20 | 2a 75 73 65 72 41 67 65 |;..char |*userAge|
|00000290| 6e 74 3b 0d 09 63 68 61 | 72 20 2a 61 63 74 69 6f |nt;..cha|r *actio|
|000002a0| 6e 3b 0d 09 63 68 61 72 | 20 2a 61 63 74 69 6f 6e |n;..char| *action|
|000002b0| 50 61 74 68 3b 0d 09 63 | 68 61 72 20 2a 6d 65 74 |Path;..c|har *met|
|000002c0| 68 6f 64 3b 0d 09 63 68 | 61 72 20 2a 63 6c 69 65 |hod;..ch|ar *clie|
|000002d0| 6e 74 49 50 3b 0d 09 63 | 68 61 72 20 2a 66 75 6c |ntIP;..c|har *ful|
|000002e0| 6c 52 65 71 75 65 73 74 | 3b 0d 09 63 68 61 72 20 |lRequest|;..char |
|000002f0| 2a 63 6f 6e 6e 65 63 74 | 69 6f 6e 49 44 3b 0d 0d |*connect|ionID;..|
|00000300| 09 63 68 61 72 20 2a 73 | 65 61 72 63 68 41 72 67 |.char *s|earchArg|
|00000310| 73 3b 0d 09 63 68 61 72 | 20 2a 70 6f 73 74 41 72 |s;..char| *postAr|
|00000320| 67 73 3b 0d 09 0d 09 6c | 6f 6e 67 20 73 65 61 72 |gs;....l|ong sear|
|00000330| 63 68 4e 75 6d 3b 0d 09 | 48 61 6e 64 6c 65 20 73 |chNum;..|Handle s|
|00000340| 65 61 72 63 68 4e 61 6d | 65 73 3b 0d 09 48 61 6e |earchNam|es;..Han|
|00000350| 64 6c 65 20 73 65 61 72 | 63 68 56 61 6c 75 65 73 |dle sear|chValues|
|00000360| 3b 0d 0d 09 6c 6f 6e 67 | 20 70 6f 73 74 4e 75 6d |;...long| postNum|
|00000370| 3b 0d 09 48 61 6e 64 6c | 65 20 70 6f 73 74 4e 61 |;..Handl|e postNa|
|00000380| 6d 65 73 3b 0d 09 48 61 | 6e 64 6c 65 20 70 6f 73 |mes;..Ha|ndle pos|
|00000390| 74 56 61 6c 75 65 73 3b | 0d 0d 09 48 61 6e 64 6c |tValues;|...Handl|
|000003a0| 65 20 73 74 6f 72 61 67 | 65 3b 0d 09 48 61 6e 64 |e storag|e;..Hand|
|000003b0| 6c 65 20 72 65 73 70 6f | 6e 73 65 3b 0d 09 0d 09 |le respo|nse;....|
|000003c0| 41 70 70 6c 65 45 76 65 | 6e 74 20 2a 65 76 65 6e |AppleEve|nt *even|
|000003d0| 74 3b 09 2f 2f 20 4a 75 | 73 74 20 69 6e 20 63 61 |t;.// Ju|st in ca|
|000003e0| 73 65 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 67 |se you n|eed to g|
|000003f0| 65 74 20 61 74 20 74 68 | 65 20 72 61 77 20 69 6e |et at th|e raw in|
|00000400| 66 6f 72 6d 61 74 69 6f | 6e 0d 09 09 09 09 09 09 |formatio|n.......|
|00000410| 2f 2f 20 69 6e 20 74 68 | 65 20 65 76 65 6e 74 2e |// in th|e event.|
|00000420| 2e 2e 0d 09 0d 09 42 6f | 6f 6c 65 61 6e 20 69 73 |......Bo|olean is|
|00000430| 4c 6f 63 6b 65 64 3b 0d | 7d 20 57 57 57 52 65 71 |Locked;.|} WWWReq|
|00000440| 75 65 73 74 52 65 63 6f | 72 64 2c 20 2a 57 57 57 |uestReco|rd, *WWW|
|00000450| 52 65 71 75 65 73 74 3b | 0d 0d 2f 2f 20 2d 2d 2d |Request;|..// ---|
|00000460| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000470| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000490| 2d 2d 0d 0d 76 6f 69 64 | 20 41 43 47 49 46 61 74 |--..void| ACGIFat|
|000004a0| 61 6c 28 63 68 61 72 20 | 2a 72 65 61 73 6f 6e 29 |al(char |*reason)|
|000004b0| 3b 0d 76 6f 69 64 20 41 | 43 47 49 53 68 75 74 64 |;.void A|CGIShutd|
|000004c0| 6f 77 6e 28 76 6f 69 64 | 29 3b 0d 42 6f 6f 6c 65 |own(void|);.Boole|
|000004d0| 61 6e 20 41 43 47 49 49 | 73 53 68 75 74 74 69 6e |an ACGII|sShuttin|
|000004e0| 67 64 6f 77 6e 28 76 6f | 69 64 29 3b 0d 42 6f 6f |gdown(vo|id);.Boo|
|000004f0| 6c 65 61 6e 20 41 43 47 | 49 52 65 66 75 73 65 28 |lean ACG|IRefuse(|
|00000500| 42 6f 6f 6c 65 61 6e 20 | 72 65 66 75 73 65 29 3b |Boolean |refuse);|
|00000510| 0d 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 41 |.unsigne|d long A|
|00000520| 43 47 49 47 65 74 52 75 | 6e 6e 69 6e 67 54 68 72 |CGIGetRu|nningThr|
|00000530| 65 61 64 73 28 76 6f 69 | 64 29 3b 0d 75 6e 73 69 |eads(voi|d);.unsi|
|00000540| 67 6e 65 64 20 6c 6f 6e | 67 20 41 43 47 49 47 65 |gned lon|g ACGIGe|
|00000550| 74 4d 61 78 54 68 72 65 | 61 64 73 28 76 6f 69 64 |tMaxThre|ads(void|
|00000560| 29 3b 0d 76 6f 69 64 20 | 41 43 47 49 53 65 74 4d |);.void |ACGISetM|
|00000570| 61 78 54 68 72 65 61 64 | 73 28 75 6e 73 69 67 6e |axThread|s(unsign|
|00000580| 65 64 20 6c 6f 6e 67 20 | 6e 65 77 54 68 72 65 61 |ed long |newThrea|
|00000590| 64 73 29 3b 0d 76 6f 69 | 64 20 41 43 47 49 47 65 |ds);.voi|d ACGIGe|
|000005a0| 74 53 6c 65 65 70 73 28 | 6c 6f 6e 67 20 2a 77 68 |tSleeps(|long *wh|
|000005b0| 65 6e 54 68 72 65 61 64 | 73 2c 20 6c 6f 6e 67 20 |enThread|s, long |
|000005c0| 2a 77 68 65 6e 49 64 6c | 65 29 3b 0d 76 6f 69 64 |*whenIdl|e);.void|
|000005d0| 20 41 43 47 49 53 65 74 | 53 6c 65 65 70 73 28 6c | ACGISet|Sleeps(l|
|000005e0| 6f 6e 67 20 77 68 65 6e | 54 68 72 65 61 64 73 2c |ong when|Threads,|
|000005f0| 20 6c 6f 6e 67 20 77 68 | 65 6e 49 64 6c 65 29 3b | long wh|enIdle);|
|00000600| 0d 6c 6f 6e 67 20 41 43 | 47 49 47 65 74 57 4e 45 |.long AC|GIGetWNE|
|00000610| 44 65 6c 74 61 28 76 6f | 69 64 29 3b 0d 76 6f 69 |Delta(vo|id);.voi|
|00000620| 64 20 41 43 47 49 53 65 | 74 57 4e 45 44 65 6c 74 |d ACGISe|tWNEDelt|
|00000630| 61 28 6c 6f 6e 67 20 6e | 65 77 44 65 6c 74 61 29 |a(long n|ewDelta)|
|00000640| 3b 0d 76 6f 69 64 20 41 | 43 47 49 47 65 74 54 68 |;.void A|CGIGetTh|
|00000650| 72 65 61 64 50 61 72 61 | 6d 73 28 53 69 7a 65 20 |readPara|ms(Size |
|00000660| 2a 73 74 61 63 6b 2c 20 | 54 68 72 65 61 64 4f 70 |*stack, |ThreadOp|
|00000670| 74 69 6f 6e 73 20 2a 6f | 70 74 69 6f 6e 73 29 3b |tions *o|ptions);|
|00000680| 0d 76 6f 69 64 20 41 43 | 47 49 53 65 74 54 68 72 |.void AC|GISetThr|
|00000690| 65 61 64 50 61 72 61 6d | 73 28 53 69 7a 65 20 73 |eadParam|s(Size s|
|000006a0| 74 61 63 6b 2c 20 54 68 | 72 65 61 64 4f 70 74 69 |tack, Th|readOpti|
|000006b0| 6f 6e 73 20 6f 70 74 69 | 6f 6e 73 29 3b 0d 63 6f |ons opti|ons);.co|
|000006c0| 6e 73 74 20 63 68 61 72 | 20 2a 41 43 47 49 47 65 |nst char| *ACGIGe|
|000006d0| 74 48 54 54 50 48 65 61 | 64 65 72 28 76 6f 69 64 |tHTTPHea|der(void|
|000006e0| 29 3b 0d 0d 2f 2f 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |);..// -|--------|
|000006f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0d 74 79 |--------|----..ty|
|00000720| 70 65 64 65 66 20 65 6e | 75 6d 20 57 57 57 50 61 |pedef en|um WWWPa|
|00000730| 72 61 6d 65 74 65 72 20 | 7b 0d 09 70 5f 70 61 74 |rameter |{..p_pat|
|00000740| 68 5f 61 72 67 73 20 3d | 20 30 2c 0d 09 70 5f 75 |h_args =| 0,..p_u|
|00000750| 73 65 72 6e 61 6d 65 2c | 0d 09 70 5f 70 61 73 73 |sername,|..p_pass|
|00000760| 77 6f 72 64 2c 0d 09 70 | 5f 66 72 6f 6d 5f 75 73 |word,..p|_from_us|
|00000770| 65 72 2c 0d 09 70 5f 63 | 6c 69 65 6e 74 5f 61 64 |er,..p_c|lient_ad|
|00000780| 64 72 65 73 73 2c 0d 09 | 70 5f 73 65 72 76 65 72 |dress,..|p_server|
|00000790| 5f 6e 61 6d 65 2c 0d 09 | 70 5f 73 65 72 76 65 72 |_name,..|p_server|
|000007a0| 5f 70 6f 72 74 2c 0d 09 | 70 5f 73 63 72 69 70 74 |_port,..|p_script|
|000007b0| 5f 6e 61 6d 65 2c 0d 09 | 70 5f 63 6f 6e 74 65 6e |_name,..|p_conten|
|000007c0| 74 5f 74 79 70 65 2c 0d | 09 70 5f 72 65 66 65 72 |t_type,.|.p_refer|
|000007d0| 65 72 2c 0d 09 70 5f 75 | 73 65 72 5f 61 67 65 6e |er,..p_u|ser_agen|
|000007e0| 74 2c 0d 09 70 5f 61 63 | 74 69 6f 6e 2c 0d 09 70 |t,..p_ac|tion,..p|
|000007f0| 5f 61 63 74 69 6f 6e 5f | 70 61 74 68 2c 0d 09 70 |_action_|path,..p|
|00000800| 5f 6d 65 74 68 6f 64 2c | 0d 09 70 5f 63 6c 69 65 |_method,|..p_clie|
|00000810| 6e 74 5f 69 70 2c 0d 09 | 70 5f 66 75 6c 6c 5f 72 |nt_ip,..|p_full_r|
|00000820| 65 71 75 65 73 74 2c 0d | 09 70 5f 63 6f 6e 6e 65 |equest,.|.p_conne|
|00000830| 63 74 69 6f 6e 5f 69 64 | 0d 7d 20 57 57 57 50 61 |ction_id|.} WWWPa|
|00000840| 72 61 6d 65 74 65 72 3b | 0d 0d 2f 2f 20 5b 31 5d |rameter;|..// [1]|
|00000850| 09 4c 6f 63 6b 20 64 6f | 77 6e 20 27 72 65 71 75 |.Lock do|wn 'requ|
|00000860| 65 73 74 27 20 70 61 72 | 61 6d 65 74 65 72 73 20 |est' par|ameters |
|00000870| 62 65 66 6f 72 65 20 61 | 63 63 65 73 73 69 6e 67 |before a|ccessing|
|00000880| 20 63 6f 6e 74 65 6e 74 | 73 2e 0d 0d 42 6f 6f 6c | content|s...Bool|
|00000890| 65 61 6e 20 48 54 54 50 | 4c 6f 63 6b 50 61 72 61 |ean HTTP|LockPara|
|000008a0| 6d 73 28 57 57 57 52 65 | 71 75 65 73 74 20 72 29 |ms(WWWRe|quest r)|
|000008b0| 3b 0d 0d 2f 2f 20 5b 32 | 5d 09 55 6e 6c 6f 63 6b |;..// [2|].Unlock|
|000008c0| 20 74 68 65 20 72 65 71 | 75 65 73 74 20 70 61 72 | the req|uest par|
|000008d0| 61 6d 65 74 65 72 73 2e | 0d 0d 76 6f 69 64 20 48 |ameters.|..void H|
|000008e0| 54 54 50 55 6e 6c 6f 63 | 6b 50 61 72 61 6d 73 28 |TTPUnloc|kParams(|
|000008f0| 57 57 57 52 65 71 75 65 | 73 74 20 72 29 3b 0d 0d |WWWReque|st r);..|
|00000900| 2f 2f 20 5b 33 5d 09 47 | 65 74 20 61 20 70 6f 69 |// [3].G|et a poi|
|00000910| 6e 74 65 72 20 74 6f 20 | 6f 6e 65 20 6f 66 20 74 |nter to |one of t|
|00000920| 68 65 20 70 61 72 61 6d | 65 74 65 72 20 73 74 72 |he param|eter str|
|00000930| 69 6e 67 73 2e 0d 2f 2f | 09 09 54 68 69 73 20 6c |ings..//|..This l|
|00000940| 65 61 76 65 73 20 27 72 | 27 20 6c 6f 63 6b 65 64 |eaves 'r|' locked|
|00000950| 2e 0d 0d 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 48 |...const| char *H|
|00000960| 54 54 50 47 65 74 50 61 | 72 61 6d 28 57 57 57 52 |TTPGetPa|ram(WWWR|
|00000970| 65 71 75 65 73 74 20 72 | 2c 20 57 57 57 50 61 72 |equest r|, WWWPar|
|00000980| 61 6d 65 74 65 72 20 70 | 61 72 29 3b 0d 0d 2f 2f |ameter p|ar);..//|
|00000990| 2f 20 5b 34 5d 20 47 65 | 74 20 74 68 65 20 69 6e |/ [4] Ge|t the in|
|000009a0| 74 65 67 65 72 20 76 61 | 6c 75 65 20 6f 66 20 61 |teger va|lue of a|
|000009b0| 20 70 61 72 61 6d 65 74 | 65 72 2e 20 52 65 73 75 | paramet|er. Resu|
|000009c0| 6c 74 20 69 73 20 72 65 | 74 75 72 6e 65 64 0d 2f |lt is re|turned./|
|000009d0| 2f 20 09 09 69 6e 20 27 | 69 27 2e 20 46 75 6e 63 |/ ..in '|i'. Func|
|000009e0| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 20 27 66 61 |tion ret|urns 'fa|
|000009f0| 6c 73 65 27 20 69 66 20 | 74 68 65 20 70 61 72 61 |lse' if |the para|
|00000a00| 6d 65 74 65 72 20 69 73 | 0d 2f 2f 20 09 09 6e 6f |meter is|.// ..no|
|00000a10| 74 20 61 6e 20 69 6e 74 | 65 67 65 72 2e 0d 0d 42 |t an int|eger...B|
|00000a20| 6f 6f 6c 65 61 6e 20 48 | 54 54 50 47 65 74 4c 6f |oolean H|TTPGetLo|
|00000a30| 6e 67 28 57 57 57 52 65 | 71 75 65 73 74 20 72 2c |ng(WWWRe|quest r,|
|00000a40| 20 57 57 57 50 61 72 61 | 6d 65 74 65 72 20 70 61 | WWWPara|meter pa|
|00000a50| 72 2c 20 6c 6f 6e 67 20 | 2a 69 29 3b 0d 0d 2f 2f |r, long |*i);..//|
|00000a60| 20 5b 35 5d 09 43 6f 70 | 79 20 70 61 72 61 6d 65 | [5].Cop|y parame|
|00000a70| 74 65 72 20 74 65 78 74 | 20 69 6e 74 6f 20 63 68 |ter text| into ch|
|00000a80| 61 72 61 63 74 65 72 20 | 76 61 72 69 61 62 6c 65 |aracter |variable|
|00000a90| 20 27 72 65 73 75 6c 74 | 27 2e 20 4c 65 6e 67 74 | 'result|'. Lengt|
|00000aa0| 68 20 6f 66 20 79 6f 75 | 72 20 63 68 61 72 61 63 |h of you|r charac|
|00000ab0| 74 65 72 0d 2f 2f 09 09 | 76 61 72 69 61 62 6c 65 |ter.//..|variable|
|00000ac0| 20 69 73 20 69 6e 20 27 | 6c 65 6e 27 2c 20 74 68 | is in '|len', th|
|00000ad0| 65 20 61 63 74 75 61 6c | 20 6c 65 6e 67 74 68 20 |e actual| length |
|00000ae0| 6f 66 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |of the p|arameter|
|00000af0| 20 69 73 20 72 65 74 75 | 72 6e 65 64 20 69 6e 0d | is retu|rned in.|
|00000b00| 2f 2f 20 09 09 27 61 63 | 74 75 61 6c 4c 65 6e 27 |// ..'ac|tualLen'|
|00000b10| 2e 20 46 75 6e 63 74 69 | 6f 6e 20 72 65 74 75 72 |. Functi|on retur|
|00000b20| 6e 20 27 66 61 6c 73 65 | 27 20 69 66 20 74 68 65 |n 'false|' if the|
|00000b30| 20 70 61 72 61 6d 65 74 | 65 72 20 69 64 65 6e 74 | paramet|er ident|
|00000b40| 69 66 69 65 72 20 27 70 | 61 72 27 20 69 73 20 69 |ifier 'p|ar' is i|
|00000b50| 6e 76 61 6c 69 64 2e 0d | 0d 42 6f 6f 6c 65 61 6e |nvalid..|.Boolean|
|00000b60| 20 48 54 54 50 43 6f 70 | 79 50 61 72 61 6d 28 57 | HTTPCop|yParam(W|
|00000b70| 57 57 52 65 71 75 65 73 | 74 20 72 2c 20 57 57 57 |WWReques|t r, WWW|
|00000b80| 50 61 72 61 6d 65 74 65 | 72 20 70 61 72 2c 20 63 |Paramete|r par, c|
|00000b90| 68 61 72 20 2a 72 65 73 | 75 6c 74 2c 20 6c 6f 6e |har *res|ult, lon|
|00000ba0| 67 20 6c 65 6e 2c 20 6c | 6f 6e 67 20 2a 61 63 74 |g len, l|ong *act|
|00000bb0| 75 61 6c 4c 65 6e 29 3b | 0d 0d 2f 2f 20 5b 36 2f |ualLen);|..// [6/|
|00000bc0| 37 5d 09 47 65 74 20 6e | 75 6d 62 65 72 20 6f 66 |7].Get n|umber of|
|00000bd0| 20 53 45 41 52 43 48 2f | 50 4f 53 54 20 61 72 67 | SEARCH/|POST arg|
|00000be0| 75 6d 65 6e 74 73 2e 0d | 0d 6c 6f 6e 67 20 48 54 |uments..|.long HT|
|00000bf0| 54 50 47 65 74 4e 75 6d | 53 72 63 68 41 72 67 73 |TPGetNum|SrchArgs|
|00000c00| 28 57 57 57 52 65 71 75 | 65 73 74 20 72 29 3b 0d |(WWWRequ|est r);.|
|00000c10| 6c 6f 6e 67 20 48 54 54 | 50 47 65 74 4e 75 6d 50 |long HTT|PGetNumP|
|00000c20| 6f 73 74 41 72 67 73 28 | 57 57 57 52 65 71 75 65 |ostArgs(|WWWReque|
|00000c30| 73 74 20 72 29 3b 0d 0d | 2f 2f 20 5b 38 2f 39 5d |st r);..|// [8/9]|
|00000c40| 09 47 65 74 20 61 20 53 | 45 41 52 43 48 2f 50 4f |.Get a S|EARCH/PO|
|00000c50| 53 54 20 61 72 67 75 6d | 65 6e 74 20 62 79 20 61 |ST argum|ent by a|
|00000c60| 62 73 6f 6c 75 74 65 20 | 70 6f 73 69 74 69 6f 6e |bsolute |position|
|00000c70| 2e 20 27 69 6e 64 65 78 | 27 20 69 73 20 62 65 74 |. 'index|' is bet|
|00000c80| 77 65 65 6e 0d 2f 2f 20 | 20 20 20 20 20 09 31 20 |ween.// | .1 |
|00000c90| 61 6e 64 20 74 68 65 20 | 74 6f 74 61 6c 20 6e 75 |and the |total nu|
|00000ca0| 6d 62 65 72 20 6f 66 20 | 53 45 41 52 43 48 2f 50 |mber of |SEARCH/P|
|00000cb0| 4f 53 54 20 61 72 67 75 | 6d 65 6e 74 73 2e 20 27 |OST argu|ments. '|
|00000cc0| 6e 61 6d 65 27 20 72 65 | 63 65 69 76 65 73 20 74 |name' re|ceives t|
|00000cd0| 68 65 0d 2f 2f 09 09 09 | 6e 61 6d 65 20 6f 66 20 |he.//...|name of |
|00000ce0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 61 74 20 |the argu|ment at |
|00000cf0| 70 6f 73 69 74 69 6f 6e | 20 27 69 6e 64 65 78 27 |position| 'index'|
|00000d00| 20 61 6e 64 20 27 76 61 | 6c 75 65 27 20 72 65 63 | and 'va|lue' rec|
|00000d10| 65 69 76 65 73 20 74 68 | 65 20 76 61 6c 75 65 2e |eives th|e value.|
|00000d20| 0d 2f 2f 09 09 09 54 68 | 65 20 6c 65 6e 67 74 68 |.//...Th|e length|
|00000d30| 73 20 6f 66 20 74 68 65 | 20 63 68 61 72 61 63 74 |s of the| charact|
|00000d40| 65 72 20 61 72 72 61 79 | 73 20 27 6e 61 6d 65 27 |er array|s 'name'|
|00000d50| 20 61 6e 64 20 27 76 61 | 6c 75 65 27 20 61 72 65 | and 'va|lue' are|
|00000d60| 20 69 6e 20 27 6e 61 6d | 65 4c 65 6e 27 0d 2f 2f | in 'nam|eLen'.//|
|00000d70| 09 09 09 61 6e 64 20 27 | 76 61 6c 75 65 4c 65 6e |...and '|valueLen|
|00000d80| 27 2e 20 54 68 65 20 61 | 63 74 75 61 6c 20 6c 65 |'. The a|ctual le|
|00000d90| 6e 67 74 68 73 20 6f 66 | 20 74 68 65 20 69 74 65 |ngths of| the ite|
|00000da0| 6d 73 20 61 72 65 20 72 | 65 74 75 72 6e 65 64 20 |ms are r|eturned |
|00000db0| 69 6e 0d 2f 2f 09 09 09 | 27 61 63 74 75 61 6c 4e |in.//...|'actualN|
|00000dc0| 61 6d 65 4c 65 6e 27 20 | 61 6e 64 20 27 61 63 74 |ameLen' |and 'act|
|00000dd0| 75 61 6c 56 61 6c 75 65 | 4c 65 6e 27 2e 20 46 75 |ualValue|Len'. Fu|
|00000de0| 6e 63 74 69 6f 6e 20 72 | 65 74 75 72 6e 73 20 27 |nction r|eturns '|
|00000df0| 66 61 6c 73 65 27 20 69 | 66 20 27 69 6e 64 65 78 |false' i|f 'index|
|00000e00| 27 0d 2f 2f 09 09 09 69 | 73 20 6f 75 74 20 6f 66 |'.//...i|s out of|
|00000e10| 20 72 61 6e 67 65 2e 0d | 0d 42 6f 6f 6c 65 61 6e | range..|.Boolean|
|00000e20| 20 48 54 54 50 47 65 74 | 53 72 63 68 41 72 67 41 | HTTPGet|SrchArgA|
|00000e30| 74 28 57 57 57 52 65 71 | 75 65 73 74 20 72 2c 20 |t(WWWReq|uest r, |
|00000e40| 6c 6f 6e 67 20 69 6e 64 | 65 78 2c 20 63 68 61 72 |long ind|ex, char|
|00000e50| 20 2a 6e 61 6d 65 2c 0d | 09 09 09 09 09 09 6c 6f | *name,.|......lo|
|00000e60| 6e 67 20 6e 61 6d 65 4c | 65 6e 2c 20 6c 6f 6e 67 |ng nameL|en, long|
|00000e70| 20 2a 61 63 74 75 61 6c | 4e 61 6d 65 4c 65 6e 2c | *actual|NameLen,|
|00000e80| 20 63 68 61 72 20 2a 76 | 61 6c 75 65 2c 0d 09 09 | char *v|alue,...|
|00000e90| 09 09 09 09 6c 6f 6e 67 | 20 76 61 6c 75 65 4c 65 |....long| valueLe|
|00000ea0| 6e 2c 20 6c 6f 6e 67 20 | 2a 61 63 74 75 61 6c 56 |n, long |*actualV|
|00000eb0| 61 6c 75 65 4c 65 6e 29 | 3b 0d 0d 42 6f 6f 6c 65 |alueLen)|;..Boole|
|00000ec0| 61 6e 20 48 54 54 50 47 | 65 74 50 6f 73 74 41 72 |an HTTPG|etPostAr|
|00000ed0| 67 41 74 28 57 57 57 52 | 65 71 75 65 73 74 20 72 |gAt(WWWR|equest r|
|00000ee0| 2c 20 6c 6f 6e 67 20 69 | 6e 64 65 78 2c 20 63 68 |, long i|ndex, ch|
|00000ef0| 61 72 20 2a 6e 61 6d 65 | 2c 0d 09 09 09 09 09 09 |ar *name|,.......|
|00000f00| 6c 6f 6e 67 20 6e 61 6d | 65 4c 65 6e 2c 20 6c 6f |long nam|eLen, lo|
|00000f10| 6e 67 20 2a 61 63 74 75 | 61 6c 4e 61 6d 65 4c 65 |ng *actu|alNameLe|
|00000f20| 6e 2c 20 63 68 61 72 20 | 2a 76 61 6c 75 65 2c 0d |n, char |*value,.|
|00000f30| 09 09 09 09 09 09 6c 6f | 6e 67 20 76 61 6c 75 65 |......lo|ng value|
|00000f40| 4c 65 6e 2c 20 6c 6f 6e | 67 20 2a 61 63 74 75 61 |Len, lon|g *actua|
|00000f50| 6c 56 61 6c 75 65 4c 65 | 6e 29 3b 0d 0d 2f 2f 20 |lValueLe|n);..// |
|00000f60| 5b 31 30 2f 31 31 5d 09 | 47 65 74 20 6e 75 6d 62 |[10/11].|Get numb|
|00000f70| 65 72 20 6f 66 20 53 45 | 41 52 43 48 2f 50 4f 53 |er of SE|ARCH/POS|
|00000f80| 54 20 61 72 67 75 6d 65 | 6e 74 73 20 74 68 61 74 |T argume|nts that|
|00000f90| 20 68 61 76 65 20 74 68 | 65 20 73 61 6d 65 20 66 | have th|e same f|
|00000fa0| 69 65 6c 64 0d 2f 2f 09 | 09 09 6e 61 6d 65 20 27 |ield.//.|..name '|
|00000fb0| 6e 61 6d 65 27 2e 20 4e | 75 6d 62 65 72 20 69 73 |name'. N|umber is|
|00000fc0| 20 72 65 74 75 72 6e 65 | 64 20 69 6e 20 27 6e 75 | returne|d in 'nu|
|00000fd0| 6d 56 61 6c 75 65 73 27 | 2e 20 46 75 6e 63 74 69 |mValues'|. Functi|
|00000fe0| 6f 6e 20 72 65 74 75 72 | 6e 0d 2f 2f 09 09 09 27 |on retur|n.//...'|
|00000ff0| 66 61 6c 73 65 27 20 69 | 66 20 74 68 65 72 65 20 |false' i|f there |
|00001000| 69 73 20 6e 6f 20 53 45 | 41 52 43 48 2f 50 4f 53 |is no SE|ARCH/POS|
|00001010| 54 20 61 72 67 75 6d 65 | 6e 74 20 63 61 6c 6c 65 |T argume|nt calle|
|00001020| 64 20 27 6e 61 6d 65 27 | 2e 0d 0d 42 6f 6f 6c 65 |d 'name'|...Boole|
|00001030| 61 6e 20 48 54 54 50 47 | 65 74 53 72 63 68 41 72 |an HTTPG|etSrchAr|
|00001040| 67 43 6f 75 6e 74 28 57 | 57 57 52 65 71 75 65 73 |gCount(W|WWReques|
|00001050| 74 20 72 2c 20 63 68 61 | 72 20 2a 6e 61 6d 65 2c |t r, cha|r *name,|
|00001060| 20 6c 6f 6e 67 20 2a 6e | 75 6d 56 61 6c 75 65 73 | long *n|umValues|
|00001070| 29 3b 0d 42 6f 6f 6c 65 | 61 6e 20 48 54 54 50 47 |);.Boole|an HTTPG|
|00001080| 65 74 50 6f 73 74 41 72 | 67 43 6f 75 6e 74 28 57 |etPostAr|gCount(W|
|00001090| 57 57 52 65 71 75 65 73 | 74 20 72 2c 20 63 68 61 |WWReques|t r, cha|
|000010a0| 72 20 2a 6e 61 6d 65 2c | 20 6c 6f 6e 67 20 2a 6e |r *name,| long *n|
|000010b0| 75 6d 56 61 6c 75 65 73 | 29 3b 0d 0d 2f 2f 20 5b |umValues|);..// [|
|000010c0| 31 32 2f 31 33 5d 09 54 | 72 79 20 74 6f 20 67 65 |12/13].T|ry to ge|
|000010d0| 74 20 69 6e 73 74 61 6e | 63 65 20 27 69 6e 64 65 |t instan|ce 'inde|
|000010e0| 78 27 20 6f 66 20 61 20 | 6d 75 6c 74 69 2d 76 61 |x' of a |multi-va|
|000010f0| 6c 75 65 64 20 53 45 41 | 52 43 48 2f 50 4f 53 54 |lued SEA|RCH/POST|
|00001100| 20 61 72 67 75 6d 65 6e | 74 2e 0d 2f 2f 09 09 09 | argumen|t..//...|
|00001110| 46 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |Function| returns|
|00001120| 20 65 6d 70 74 79 20 73 | 74 72 69 6e 67 20 69 66 | empty s|tring if|
|00001130| 20 27 69 6e 64 65 78 27 | 20 69 73 20 6f 75 74 20 | 'index'| is out |
|00001140| 6f 66 20 72 61 6e 67 65 | 20 6f 72 20 69 66 20 27 |of range| or if '|
|00001150| 6e 61 6d 65 27 20 64 6f | 65 73 6e 27 74 0d 2f 2f |name' do|esn't.//|
|00001160| 09 09 09 65 78 69 73 74 | 2e 20 46 75 6e 63 74 69 |...exist|. Functi|
|00001170| 6f 6e 20 6c 65 61 76 65 | 73 20 27 72 27 20 6c 6f |on leave|s 'r' lo|
|00001180| 63 6b 65 64 20 6f 6e 20 | 65 78 69 74 2e 0d 0d 63 |cked on |exit...c|
|00001190| 6f 6e 73 74 20 63 68 61 | 72 20 2a 48 54 54 50 47 |onst cha|r *HTTPG|
|000011a0| 65 74 4d 75 6c 74 69 70 | 6c 65 53 72 63 68 41 72 |etMultip|leSrchAr|
|000011b0| 67 28 57 57 57 52 65 71 | 75 65 73 74 20 72 2c 20 |g(WWWReq|uest r, |
|000011c0| 63 68 61 72 20 2a 6e 61 | 6d 65 2c 20 6c 6f 6e 67 |char *na|me, long|
|000011d0| 20 69 6e 64 65 78 29 3b | 0d 63 6f 6e 73 74 20 63 | index);|.const c|
|000011e0| 68 61 72 20 2a 48 54 54 | 50 47 65 74 4d 75 6c 74 |har *HTT|PGetMult|
|000011f0| 69 70 6c 65 50 6f 73 74 | 41 72 67 28 57 57 57 52 |iplePost|Arg(WWWR|
|00001200| 65 71 75 65 73 74 20 72 | 2c 20 63 68 61 72 20 2a |equest r|, char *|
|00001210| 6e 61 6d 65 2c 20 6c 6f | 6e 67 20 69 6e 64 65 78 |name, lo|ng index|
|00001220| 29 3b 0d 0d 2f 2f 20 5b | 31 34 2f 31 35 5d 09 47 |);..// [|14/15].G|
|00001230| 65 74 20 69 6e 74 65 67 | 65 72 20 76 61 6c 75 65 |et integ|er value|
|00001240| 20 6f 66 20 69 6e 73 74 | 61 6e 63 65 20 27 69 6e | of inst|ance 'in|
|00001250| 64 65 78 27 20 6f 66 20 | 61 20 6d 75 6c 74 69 2d |dex' of |a multi-|
|00001260| 76 61 6c 75 65 64 20 53 | 45 41 52 43 48 2f 50 4f |valued S|EARCH/PO|
|00001270| 53 54 0d 2f 2f 09 09 09 | 61 72 67 75 6d 65 6e 74 |ST.//...|argument|
|00001280| 20 63 61 6c 6c 65 64 20 | 20 27 6e 61 6d 65 27 2e | called | 'name'.|
|00001290| 20 46 75 6e 63 74 69 6f | 6e 20 72 65 74 75 72 6e | Functio|n return|
|000012a0| 73 20 76 61 6c 75 65 20 | 69 6e 20 27 69 27 2e 20 |s value |in 'i'. |
|000012b0| 46 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |Function| returns|
|000012c0| 0d 2f 2f 09 09 09 27 66 | 61 6c 73 65 27 20 69 66 |.//...'f|alse' if|
|000012d0| 20 27 69 6e 64 65 78 27 | 20 69 73 20 6f 75 74 20 | 'index'| is out |
|000012e0| 6f 66 20 72 61 6e 67 65 | 20 6f 72 20 74 68 65 20 |of range| or the |
|000012f0| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 6e 6f 74 20 |argument| is not |
|00001300| 61 6e 20 69 6e 74 65 67 | 65 72 2e 0d 0d 42 6f 6f |an integ|er...Boo|
|00001310| 6c 65 61 6e 20 48 54 54 | 50 47 65 74 4c 6f 6e 67 |lean HTT|PGetLong|
|00001320| 4d 75 6c 74 69 70 6c 65 | 53 72 63 68 41 72 67 28 |Multiple|SrchArg(|
|00001330| 57 57 57 52 65 71 75 65 | 73 74 20 72 2c 20 63 68 |WWWReque|st r, ch|
|00001340| 61 72 20 2a 6e 61 6d 65 | 2c 20 6c 6f 6e 67 20 69 |ar *name|, long i|
|00001350| 6e 64 65 78 2c 20 6c 6f | 6e 67 20 2a 69 29 3b 0d |ndex, lo|ng *i);.|
|00001360| 42 6f 6f 6c 65 61 6e 20 | 48 54 54 50 47 65 74 4c |Boolean |HTTPGetL|
|00001370| 6f 6e 67 4d 75 6c 74 69 | 70 6c 65 50 6f 73 74 41 |ongMulti|plePostA|
|00001380| 72 67 28 57 57 57 52 65 | 71 75 65 73 74 20 72 2c |rg(WWWRe|quest r,|
|00001390| 20 63 68 61 72 20 2a 6e | 61 6d 65 2c 20 6c 6f 6e | char *n|ame, lon|
|000013a0| 67 20 69 6e 64 65 78 2c | 20 6c 6f 6e 67 20 2a 69 |g index,| long *i|
|000013b0| 29 3b 0d 0d 2f 2f 20 5b | 31 36 2f 31 37 5d 09 43 |);..// [|16/17].C|
|000013c0| 6f 70 79 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |opy the |contents|
|000013d0| 20 6f 66 20 69 6e 73 74 | 61 6e 63 65 20 27 69 6e | of inst|ance 'in|
|000013e0| 64 65 78 27 20 6f 66 20 | 61 20 6d 75 6c 74 69 2d |dex' of |a multi-|
|000013f0| 76 61 6c 75 65 64 20 53 | 45 41 52 43 48 2f 50 4f |valued S|EARCH/PO|
|00001400| 53 54 0d 2f 2f 09 09 09 | 61 72 67 75 6d 65 6e 74 |ST.//...|argument|
|00001410| 20 63 61 6c 6c 65 64 20 | 27 6e 61 6d 65 27 2e 20 | called |'name'. |
|00001420| 46 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |Function| returns|
|00001430| 20 74 65 78 74 20 69 6e | 20 27 76 61 6c 75 65 27 | text in| 'value'|
|00001440| 2e 20 4c 65 6e 67 74 68 | 20 6f 66 20 27 76 61 6c |. Length| of 'val|
|00001450| 75 65 27 0d 2f 2f 09 09 | 09 73 74 72 69 6e 67 20 |ue'.//..|.string |
|00001460| 69 73 20 69 6e 20 27 6c | 65 6e 27 2c 20 61 63 74 |is in 'l|en', act|
|00001470| 75 61 6c 20 6c 65 6e 67 | 74 68 20 6f 66 20 74 68 |ual leng|th of th|
|00001480| 65 20 76 61 6c 75 65 20 | 73 74 72 69 6e 67 20 69 |e value |string i|
|00001490| 73 20 72 65 74 75 72 6e | 65 64 20 69 6e 20 27 61 |s return|ed in 'a|
|000014a0| 63 74 75 61 6c 4c 65 6e | 27 0d 2f 2f 20 09 09 09 |ctualLen|'.// ...|
|000014b0| 46 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |Function| returns|
|000014c0| 20 27 66 61 6c 73 65 27 | 20 69 66 20 27 69 6e 64 | 'false'| if 'ind|
|000014d0| 65 78 27 20 69 73 20 6f | 75 74 20 6f 66 20 72 61 |ex' is o|ut of ra|
|000014e0| 6e 67 65 20 6f 72 20 27 | 6e 61 6d 65 27 20 64 6f |nge or '|name' do|
|000014f0| 65 73 20 6e 6f 74 20 65 | 78 69 73 74 2e 0d 0d 42 |es not e|xist...B|
|00001500| 6f 6f 6c 65 61 6e 20 48 | 54 54 50 43 6f 70 79 4d |oolean H|TTPCopyM|
|00001510| 75 6c 74 69 70 6c 65 53 | 72 63 68 41 72 67 28 57 |ultipleS|rchArg(W|
|00001520| 57 57 52 65 71 75 65 73 | 74 20 72 2c 20 63 68 61 |WWReques|t r, cha|
|00001530| 72 20 2a 6e 61 6d 65 2c | 20 6c 6f 6e 67 20 69 6e |r *name,| long in|
|00001540| 64 65 78 2c 20 63 68 61 | 72 20 2a 76 61 6c 75 65 |dex, cha|r *value|
|00001550| 2c 20 6c 6f 6e 67 20 6c | 65 6e 2c 20 6c 6f 6e 67 |, long l|en, long|
|00001560| 20 2a 61 63 74 75 61 6c | 4c 65 6e 29 3b 0d 42 6f | *actual|Len);.Bo|
|00001570| 6f 6c 65 61 6e 20 48 54 | 54 50 43 6f 70 79 4d 75 |olean HT|TPCopyMu|
|00001580| 6c 74 69 70 6c 65 50 6f | 73 74 41 72 67 28 57 57 |ltiplePo|stArg(WW|
|00001590| 57 52 65 71 75 65 73 74 | 20 72 2c 20 63 68 61 72 |WRequest| r, char|
|000015a0| 20 2a 6e 61 6d 65 2c 20 | 6c 6f 6e 67 20 69 6e 64 | *name, |long ind|
|000015b0| 65 78 2c 20 63 68 61 72 | 20 2a 76 61 6c 75 65 2c |ex, char| *value,|
|000015c0| 20 6c 6f 6e 67 20 6c 65 | 6e 2c 20 6c 6f 6e 67 20 | long le|n, long |
|000015d0| 2a 61 63 74 75 61 6c 4c | 65 6e 29 3b 0d 0d 2f 2f |*actualL|en);..//|
|000015e0| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|000015f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001610| 2d 2d 2d 2d 2d 2d 0d 0d | 2f 2f 20 5b 31 5d 09 47 |------..|// [1].G|
|00001620| 65 74 20 74 68 65 20 68 | 61 6e 64 6c 65 20 74 68 |et the h|andle th|
|00001630| 61 74 20 68 6f 6c 64 73 | 20 74 68 65 20 48 54 4d |at holds| the HTM|
|00001640| 4c 20 72 65 73 70 6f 6e | 73 65 20 70 61 67 65 2e |L respon|se page.|
|00001650| 0d 0d 48 61 6e 64 6c 65 | 20 48 54 4d 4c 47 65 74 |..Handle| HTMLGet|
|00001660| 52 65 73 70 6f 6e 73 65 | 48 61 6e 64 6c 65 28 57 |Response|Handle(W|
|00001670| 57 57 52 65 71 75 65 73 | 74 20 72 29 3b 0d 0d 2f |WWReques|t r);../|
|00001680| 2f 20 5b 32 5d 09 43 6c | 65 61 72 20 6f 75 74 20 |/ [2].Cl|ear out |
|00001690| 74 68 65 20 63 75 72 72 | 65 6e 74 20 72 65 73 70 |the curr|ent resp|
|000016a0| 6f 6e 73 65 20 70 61 67 | 65 20 28 65 78 63 65 70 |onse pag|e (excep|
|000016b0| 74 20 66 6f 72 20 74 68 | 65 0d 2f 2f 09 09 48 54 |t for th|e.//..HT|
|000016c0| 54 50 20 68 65 61 64 65 | 72 2c 20 61 6e 64 20 73 |TP heade|r, and s|
|000016d0| 74 61 72 74 20 6f 76 65 | 72 2e 0d 0d 4f 53 45 72 |tart ove|r...OSEr|
|000016e0| 72 20 48 54 4d 4c 43 6c | 65 61 72 50 61 67 65 28 |r HTMLCl|earPage(|
|000016f0| 48 61 6e 64 6c 65 20 72 | 29 3b 0d 0d 2f 2f 20 5b |Handle r|);..// [|
|00001700| 33 5d 09 41 70 70 65 6e | 64 20 63 6f 6e 74 65 6e |3].Appen|d conten|
|00001710| 74 73 20 6f 66 20 68 61 | 6e 64 6c 65 20 27 68 27 |ts of ha|ndle 'h'|
|00001720| 20 74 6f 20 72 65 73 70 | 6f 6e 73 65 20 70 61 67 | to resp|onse pag|
|00001730| 65 2e 0d 0d 4f 53 45 72 | 72 20 48 54 4d 4c 41 70 |e...OSEr|r HTMLAp|
|00001740| 70 65 6e 64 48 61 6e 64 | 6c 65 28 48 61 6e 64 6c |pendHand|le(Handl|
|00001750| 65 20 72 2c 20 48 61 6e | 64 6c 65 20 68 29 3b 0d |e r, Han|dle h);.|
|00001760| 0d 2f 2f 20 5b 34 5d 09 | 41 70 70 65 6e 64 20 54 |.// [4].|Append T|
|00001770| 45 58 54 20 72 65 73 6f | 75 72 63 65 20 28 49 44 |EXT reso|urce (ID|
|00001780| 3d 69 54 45 58 54 52 65 | 73 49 44 29 20 74 6f 20 |=iTEXTRe|sID) to |
|00001790| 72 65 73 70 6f 6e 73 65 | 20 70 61 67 65 2e 0d 0d |response| page...|
|000017a0| 4f 53 45 72 72 20 48 54 | 4d 4c 41 70 70 65 6e 64 |OSErr HT|MLAppend|
|000017b0| 54 45 58 54 28 48 61 6e | 64 6c 65 20 72 2c 20 6c |TEXT(Han|dle r, l|
|000017c0| 6f 6e 67 20 69 54 45 58 | 54 52 65 73 49 44 29 3b |ong iTEX|TResID);|
|000017d0| 0d 0d 2f 2f 20 5b 35 5d | 09 41 70 70 65 6e 64 20 |..// [5]|.Append |
|000017e0| 53 54 52 20 72 65 73 6f | 75 72 63 65 20 28 49 44 |STR reso|urce (ID|
|000017f0| 3d 69 53 54 52 52 65 73 | 49 44 29 20 74 6f 20 74 |=iSTRRes|ID) to t|
|00001800| 68 65 20 72 65 73 70 6f | 6e 73 65 20 70 61 67 65 |he respo|nse page|
|00001810| 2e 0d 0d 4f 53 45 72 72 | 20 48 54 4d 4c 41 70 70 |...OSErr| HTMLApp|
|00001820| 65 6e 64 53 74 72 69 6e | 67 28 48 61 6e 64 6c 65 |endStrin|g(Handle|
|00001830| 20 72 2c 20 6c 6f 6e 67 | 20 69 53 54 52 52 65 73 | r, long| iSTRRes|
|00001840| 49 44 29 3b 0d 0d 2f 2f | 20 5b 36 5d 09 41 70 70 |ID);..//| [6].App|
|00001850| 65 6e 64 20 73 74 72 69 | 6e 67 20 61 74 20 6c 6f |end stri|ng at lo|
|00001860| 63 61 74 69 6f 6e 20 27 | 69 6e 64 65 78 27 20 69 |cation '|index' i|
|00001870| 6e 20 53 54 52 23 20 72 | 65 73 6f 75 72 63 65 0d |n STR# r|esource.|
|00001880| 2f 2f 09 09 28 49 44 3d | 69 53 54 52 52 65 73 49 |//..(ID=|iSTRResI|
|00001890| 44 29 20 74 6f 20 74 68 | 65 20 72 65 73 70 6f 6e |D) to th|e respon|
|000018a0| 73 65 20 70 61 67 65 2e | 0d 0d 4f 53 45 72 72 20 |se page.|..OSErr |
|000018b0| 48 54 4d 4c 41 70 70 65 | 6e 64 49 6e 64 53 74 72 |HTMLAppe|ndIndStr|
|000018c0| 69 6e 67 28 48 61 6e 64 | 6c 65 20 72 2c 20 6c 6f |ing(Hand|le r, lo|
|000018d0| 6e 67 20 69 53 54 52 52 | 65 73 49 44 2c 20 6c 6f |ng iSTRR|esID, lo|
|000018e0| 6e 67 20 69 6e 64 65 78 | 29 3b 0d 0d 2f 2f 20 5b |ng index|);..// [|
|000018f0| 37 5d 09 41 70 70 65 6e | 64 20 6c 6f 63 61 6c 20 |7].Appen|d local |
|00001900| 66 69 6c 65 20 74 6f 20 | 72 65 73 70 6f 6e 73 65 |file to |response|
|00001910| 20 70 61 67 65 2e 0d 0d | 4f 53 45 72 72 20 48 54 | page...|OSErr HT|
|00001920| 4d 4c 41 70 70 65 6e 64 | 46 69 6c 65 28 48 61 6e |MLAppend|File(Han|
|00001930| 64 6c 65 20 72 2c 20 63 | 68 61 72 20 2a 6c 6f 63 |dle r, c|har *loc|
|00001940| 61 6c 46 69 6c 65 4e 61 | 6d 65 29 3b 0d 0d 2f 2f |alFileNa|me);..//|
|00001950| 20 5b 38 5d 09 41 70 70 | 65 6e 64 20 43 2d 73 74 | [8].App|end C-st|
|00001960| 72 69 6e 67 20 74 6f 20 | 72 65 73 70 6f 6e 73 65 |ring to |response|
|00001970| 20 70 61 67 65 2e 0d 0d | 4f 53 45 72 72 20 48 54 | page...|OSErr HT|
|00001980| 4d 4c 41 70 70 65 6e 64 | 43 53 74 72 69 6e 67 28 |MLAppend|CString(|
|00001990| 48 61 6e 64 6c 65 20 72 | 2c 20 63 68 61 72 20 2a |Handle r|, char *|
|000019a0| 63 53 74 72 69 6e 67 29 | 3b 0d 0d 2f 2f 20 5b 39 |cString)|;..// [9|
|000019b0| 5d 09 41 70 70 65 6e 64 | 20 50 61 73 63 61 6c 2d |].Append| Pascal-|
|000019c0| 73 74 72 69 6e 67 20 74 | 6f 20 72 65 73 70 6f 6e |string t|o respon|
|000019d0| 73 65 20 70 61 67 65 2e | 0d 0d 4f 53 45 72 72 20 |se page.|..OSErr |
|000019e0| 48 54 4d 4c 41 70 70 65 | 6e 64 50 53 74 72 69 6e |HTMLAppe|ndPStrin|
|000019f0| 67 28 48 61 6e 64 6c 65 | 20 72 2c 20 53 74 72 69 |g(Handle| r, Stri|
|00001a00| 6e 67 50 74 72 20 70 53 | 74 72 69 6e 67 29 3b 0d |ngPtr pS|tring);.|
|00001a10| 0d 2f 2f 20 5b 31 30 5d | 09 41 70 70 65 6e 64 20 |.// [10]|.Append |
|00001a20| 74 65 78 74 20 62 75 66 | 66 65 72 20 6f 66 20 6c |text buf|fer of l|
|00001a30| 65 6e 67 74 68 20 27 6c | 65 6e 27 20 74 6f 20 72 |ength 'l|en' to r|
|00001a40| 65 73 70 6f 6e 73 65 20 | 70 61 67 65 2e 0d 0d 4f |esponse |page...O|
|00001a50| 53 45 72 72 20 48 54 4d | 4c 41 70 70 65 6e 64 42 |SErr HTM|LAppendB|
|00001a60| 75 66 66 65 72 28 48 61 | 6e 64 6c 65 20 72 2c 20 |uffer(Ha|ndle r, |
|00001a70| 63 68 61 72 20 2a 62 75 | 66 66 65 72 2c 20 6c 6f |char *bu|ffer, lo|
|00001a80| 6e 67 20 6c 65 6e 29 3b | 0d 0d 23 65 6e 64 69 66 |ng len);|..#endif|
|00001a90| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 01 00 00 00 05 70 | 00 00 04 70 00 00 00 5a |.......p|...p...Z|
|00001b10| 6d 73 51 31 61 54 46 46 | 03 00 00 00 00 00 00 02 |msQ1aTFF|........|
|00001b20| 73 00 04 00 0b 01 6d 73 | 51 31 63 72 76 51 01 00 |s.....ms|Q1crvQ..|
|00001b30| 06 61 63 67 69 2e 68 b4 | 02 00 00 00 54 45 58 54 |.acgi.h.|....TEXT|
|00001b40| 52 2a 63 68 01 00 ff ff | ff ff 00 00 00 00 6f 33 |R*ch....|......o3|
|00001b50| 00 00 54 45 58 54 52 2a | 63 68 01 00 ff ff ff ff |..TEXTR*|ch......|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 ad 8f 2e 1a 00 00 | 1a 11 00 00 05 ca 6d 73 |........|......ms|
|00001b80| 51 31 6a 54 35 30 02 00 | 00 00 00 00 00 02 8e 00 |Q1jT50..|........|
|00001b90| 02 00 0b 01 6d 73 51 31 | 6a 54 35 30 03 00 00 00 |....msQ1|jT50....|
|00001ba0| 00 00 00 02 8a 00 04 00 | 0b 01 6d 73 51 31 6a 54 |........|..msQ1jT|
|00001bb0| 35 30 04 00 00 00 00 00 | 00 02 89 c0 00 40 0b 01 |50......|.....@..|
|00001bc0| 6d 73 51 31 6a 54 35 30 | 05 00 00 00 00 00 00 02 |msQ1jT50|........|
|00001bd0| 91 00 00 80 0b 01 6d 73 | 51 31 6a 54 35 30 06 00 |......ms|Q1jT50..|
|00001be0| 00 00 00 00 00 02 90 00 | 01 00 0b 01 6d 73 51 31 |........|....msQ1|
|00001bf0| 6a 54 35 31 01 00 00 00 | 00 00 00 02 c7 c0 01 00 |jT51....|........|
|00001c00| 00 00 04 18 52 2a 63 68 | 00 80 00 03 00 00 00 48 |....R*ch|.......H|
|00001c10| 00 48 00 00 00 00 02 da | 02 28 ff e1 ff e2 02 f9 |.H......|.(......|
|00001c20| 02 46 03 47 05 28 03 fc | 00 02 00 00 00 48 00 48 |.F.G.(..|.....H.H|
|00001c30| 00 00 00 00 02 da 02 28 | 00 01 00 00 00 64 00 00 |.......(|.....d..|
|00001c40| 00 01 00 01 01 01 00 00 | 00 01 27 0f 00 01 00 01 |........|..'.....|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 02 00 19 |........|........|
|00001c60| 01 90 00 00 00 00 00 40 | 00 00 00 00 00 00 00 00 |.......@|........|
|00001c70| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 00 01 07 43 6f 75 | 72 69 65 72 00 00 00 00 |.....Cou|rier....|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 0a 00 00 | 00 04 09 48 65 6c 76 65 |........|...Helve|
|00001d90| 74 69 63 61 06 4d 00 00 | 00 00 00 00 00 00 00 00 |tica.M..|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 00 00 00 00 00 00 00 00 | 00 00 0c 43 6f 6e 66 69 |........|...Confi|
|00001e90| 64 65 6e 74 69 61 6c 08 | 09 48 00 00 00 00 00 00 |dential.|.H......|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00001f90| 00 00 01 01 00 00 80 00 | 00 00 80 00 00 00 80 00 |........|........|
|00001fa0| 00 00 80 00 00 00 00 00 | 00 01 01 00 01 00 01 01 |........|........|
|00001fb0| 00 00 00 01 00 48 00 00 | 00 00 00 00 00 00 00 00 |.....H..|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 48 |........|.......H|
|00002020| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 00 00 00 00 |..Monaco|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 03 00 04 00 52 | 00 09 01 d0 02 68 00 52 |.......R|.....h.R|
|00002050| 00 09 01 d0 02 68 ae d1 | d6 83 00 00 02 e1 00 00 |.....h..|........|
|00002060| 02 e1 00 00 00 ee 01 00 | 00 00 00 04 00 01 00 01 |........|........|
|00002070| 00 00 01 00 00 00 05 70 | 00 00 04 70 00 00 00 5a |.......p|...p...Z|
|00002080| 03 7f 4b f8 37 16 00 00 | 00 1c 00 5a 00 02 42 42 |..K.7...|...Z..BB|
|00002090| 53 54 00 00 00 1a 4d 50 | 53 52 00 00 00 26 4d 57 |ST....MP|SR...&MW|
|000020a0| 42 42 00 00 00 32 00 80 | ff ff 00 00 00 00 00 00 |BB...2..|........|
|000020b0| 00 00 03 ed ff ff 00 00 | 04 1c 00 00 00 00 03 f0 |........|........|
|000020c0| ff ff 00 00 04 68 00 00 | 00 00 00 00 00 00 00 00 |.....h..|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+